﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.ApiAdminServices;

/// <summary>
/// 输入Mapper
/// 文件
/// </summary>
public class ApiFilesMapperInput : IRegister
{
    public void Register(TypeAdapterConfig config)
    {
        // 示例
        //config.ForType<xxxInput,xxx>()
        //.Map(dest => dest.MigrationId, src => src.MigrationId)//
        //.Map(dest => dest.Id, src => src.Id)//
        //;

        // Description 文件
        //config.ForType<ApiFilesInput,SysFiles>()

        #region 公共字段

        //.Map(dest => dest.Id, src => src.Id)//  ID
        //.Map(dest => dest.ExtensionData, src => src.ExtensionData)//  扩展字段
        //.Map(dest => dest.CreatorUserId, src => src.CreatorUserId)//  创建用户ID
        //.Map(dest => dest.CreatorUserName, src => src.CreatorUserName)//  创建用户
        //.Map(dest => dest.CreationTime, src => src.CreationTime)//  创建时间
        //.Map(dest => dest.UpdateUserId, src => src.UpdateUserId)//  更新用户ID
        //.Map(dest => dest.UpdateUserName, src => src.UpdateUserName)//  更新用户
        //.Map(dest => dest.UpdateTime, src => src.UpdateTime)//  更新时间
        //.Map(dest => dest.IsDeleted, src => src.IsDeleted)//  默认假删除
        //.Map(dest => dest.DeletedUserId, src => src.DeletedUserId)//  删除用户ID
        //.Map(dest => dest.DeletedUserName, src => src.DeletedUserName)//  删除用户
        //.Map(dest => dest.DeletedTime, src => src.DeletedTime)//  删除时间

        #endregion 公共字段

        //.Map(dest => dest.PID, src => src.PID)//  父ID
        //.Map(dest => dest.FileType, src => src.FileType)//  文件类型
        //.Map(dest => dest.FileStorageType, src => src.FileStorageType)//  文件存储类型
        //.Map(dest => dest.Name, src => src.Name)//  名称
        //.Map(dest => dest.Extension, src => src.Extension)//  扩展名
        //.Map(dest => dest.Size, src => src.Size)//  大小
        //.Map(dest => dest.Type, src => src.Type)//  分类
        //.Map(dest => dest.FileObjectName, src => src.FileObjectName)//  存储到bucket的名称（文件唯一标识id）
        //.Map(dest => dest.FilePath, src => src.FilePath)//  存储路径
        //.Map(dest => dest.IsOpenFile, src => src.IsOpenFile)//  是否开放文件            开放的文件，任何人都可以访问读取
        //.Map(dest => dest.Level, src => src.Level)//  层级
        //.Map(dest => dest.LevelPath, src => src.LevelPath)//  层级路径            格式 a/b/c
        //.Map(dest => dest.SourceDataId, src => src.SourceDataId)//  来源数据ID
        //.Map(dest => dest.SourceDataType, src => src.SourceDataType)//  来源数据类型
        //;
    }
}